package com.ruike.alisurface.bean;

import com.voodoo.lib_databases.annotation.Id;
import com.voodoo.lib_databases.annotation.OneToMany;
import com.voodoo.lib_databases.annotation.Table;

import java.io.Serializable;
import java.util.List;

@Table(name = "carGoodsBeans")
public class CarGoodsBeans implements Serializable {
    /**
     * productname : 可乐测试
     * productimg : http://120.78.219.34:8018/UploadFile/product/b0fdf20f-f21b-46d5-a81a-b5e0ea967999.jpg
     * productid : 86475b88-c6a5-4870-b44b-805edc188f89
     * price : 0.01
     * count : 1
     * slotIndexs : [1]
     */
    @Id(column = "id")
    private int id;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    /**
     * productname : 啊大大大
     * productimg : http://120.78.219.34:8018/UploadFile/product/9054be88-1649-47cb-a4e2-8ce427f78cce.jpeg
     * productid : 1414853789877420032
     * price : 3.55
     * count : 50
     * registration_cert_no : 871653
     * manufacturer : 啊实打实大师多
     * is_true_name : true
     * is_remote : true
     * is_insurance : false
     * spec : null
     * lv1_name : 精神类
     * lv2_name : 精神二类
     * lv3_name :
     * slotIndexs : [1,10,2,3,4,5,6,7,8,9]
     * lvOne_structure_id : 1414762539832721408
     * lvTwo_structure_id : 1414762656312737792
     * lvThree_structure_id :
     */

    private String productname;
    private String productimg;
    private String productid;
    private double price;
    private int count;
    private String registration_cert_no;
    private String manufacturer;
    private int is_true_name = 0;
    private int is_remote = 0;
    private int is_insurance = 0;

    public int getIs_prescription() {
        return is_prescription;
    }

    public void setIs_prescription(int is_prescription) {
        this.is_prescription = is_prescription;
    }

    private int is_prescription;
    private String spec;
    private String lv1_name;
    private String lv2_name;
    private String lv3_name;
    private String lvOne_structure_id;
    private String lvTwo_structure_id;
    private String lvThree_structure_id;
    private List<Integer> slotIndexs;

    public String getMslotIndexs() {
        return mslotIndexs;
    }

    public void setMslotIndexs(String mslotIndexs) {
        this.mslotIndexs = mslotIndexs;
    }

    private String mslotIndexs;

    public String getProductname() {
        return productname;
    }

    public void setProductname(String productname) {
        this.productname = productname;
    }

    public String getProductimg() {
        return productimg;
    }

    public void setProductimg(String productimg) {
        this.productimg = productimg;
    }

    public String getProductid() {
        return productid;
    }

    public void setProductid(String productid) {
        this.productid = productid;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public String getRegistration_cert_no() {
        return registration_cert_no;
    }

    public void setRegistration_cert_no(String registration_cert_no) {
        this.registration_cert_no = registration_cert_no;
    }

    public String getManufacturer() {
        return manufacturer;
    }

    public void setManufacturer(String manufacturer) {
        this.manufacturer = manufacturer;
    }


    public int getIs_true_name() {
        return is_true_name;
    }

    public void setIs_true_name(int is_true_name) {
        this.is_true_name = is_true_name;
    }

    public int getIs_remote() {
        return is_remote;
    }

    public void setIs_remote(int is_remote) {
        this.is_remote = is_remote;
    }

    public int getIs_insurance() {
        return is_insurance;
    }

    public void setIs_insurance(int is_insurance) {
        this.is_insurance = is_insurance;
    }

    public String getSpec() {
        return spec;
    }

    public void setSpec(String spec) {
        this.spec = spec;
    }

    public String getLv1_name() {
        return lv1_name;
    }

    public void setLv1_name(String lv1_name) {
        this.lv1_name = lv1_name;
    }

    public String getLv2_name() {
        return lv2_name;
    }

    public void setLv2_name(String lv2_name) {
        this.lv2_name = lv2_name;
    }

    public String getLv3_name() {
        return lv3_name;
    }

    public void setLv3_name(String lv3_name) {
        this.lv3_name = lv3_name;
    }

    public String getLvOne_structure_id() {
        return lvOne_structure_id;
    }

    public void setLvOne_structure_id(String lvOne_structure_id) {
        this.lvOne_structure_id = lvOne_structure_id;
    }

    public String getLvTwo_structure_id() {
        return lvTwo_structure_id;
    }

    public void setLvTwo_structure_id(String lvTwo_structure_id) {
        this.lvTwo_structure_id = lvTwo_structure_id;
    }

    public String getLvThree_structure_id() {
        return lvThree_structure_id;
    }

    public void setLvThree_structure_id(String lvThree_structure_id) {
        this.lvThree_structure_id = lvThree_structure_id;
    }

    public List<Integer> getSlotIndexs() {
        return slotIndexs;
    }

    public void setSlotIndexs(List<Integer> slotIndexs) {
        this.slotIndexs = slotIndexs;
    }

    @Override
    public String toString() {
        return "CarGoodsBeans{" +
                "id=" + id +
                ", productname='" + productname + '\'' +
                ", productimg='" + productimg + '\'' +
                ", productid='" + productid + '\'' +
                ", price=" + price +
                ", count=" + count +
                ", registration_cert_no='" + registration_cert_no + '\'' +
                ", manufacturer='" + manufacturer + '\'' +
                ", is_true_name=" + is_true_name +
                ", is_remote=" + is_remote +
                ", is_insurance=" + is_insurance +
                ", is_prescription=" + is_prescription +
                ", spec='" + spec + '\'' +
                ", lv1_name='" + lv1_name + '\'' +
                ", lv2_name='" + lv2_name + '\'' +
                ", lv3_name='" + lv3_name + '\'' +
                ", lvOne_structure_id='" + lvOne_structure_id + '\'' +
                ", lvTwo_structure_id='" + lvTwo_structure_id + '\'' +
                ", lvThree_structure_id='" + lvThree_structure_id + '\'' +
                ", slotIndexs=" + slotIndexs +
                ", mslotIndexs='" + mslotIndexs + '\'' +
                '}';
    }
}
